﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using SmartRS.com.vn.smartrs.service;

namespace SmartRS.com.vn.smartrs.form.uC
{
    public partial class ucBillDetail : UserControl
    {
        public ucBillDetail()
        {
            InitializeComponent();
            fillData();
        }

        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {

        }

        public void fillData()
        {
            var dataSrouce = BillService.getInstance().getBillByDeskId(1);
            dataGridView1.DataSource = dataSrouce;
        }

        private void btnChuyenBan_Click(object sender, EventArgs e)
        {
            fillData();
        }
    }
}
